<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<h3><spring:message code="content.trips" text="default text" /></h3>
	<c:forEach var="dev" items="${trips}">
		<form action="agreeWithTrip" >
        <input type= "submit" value="Send" />
        <spring:message code="content.Confirm" text="default text" />
        <spring:message code="content.YES" text="default text" /> <input type="radio" name="isAgree" value="true">
        <spring:message code="content.NO" text="default text" /> <input type="radio" name="isAgree" value="false">
        <input type="hidden" name="id" value="${dev.id} ">
		<input type="text" name="name" value="${dev.name}">
		<input type="text" name="from" value="${dev.from}">
		<input type="text" name="to"   value="${dev.to}"  >
		<input type="text" name="state"   value="${dev.state}"  >
		<input type="text" name="cost" value="${dev.cost}">
		<c:if test="${dev.driver != null}">
			<input type="text" name="driverName" value="${dev.driver.name}">
		</c:if>
		</form><br/>
	</c:forEach>     
	
	        
